define([ "dojo/_base/declare", "dojo/dom", "esri/map", "util/map/googleLayer", "util/map/districtLayer", "util/map/layer", ],
	function(declare, dom, Map, googleLayer, districtLayer, layerUtil) {
		
		var LYXB_URL ="https://arcgis.cqbaotukeji.cn/arcgis/rest/services/beibei/lyxb/MapServer";
		return declare("map", null, {
			lyxbLayer : layerUtil.getLayer("lyxb", 1, LYXB_URL, 1),
			layers : new Array(),
			baselayer : new googleLayer(),
			districtLayer : new districtLayer(),
			map : null,
			init : function() {
				this.map = new Map("map", {
					center : [ 105.847638, 29.524098 ],
					zoom : 15,
					logo : false, //logos
					slider : false //缩小按钮
				});
				this.layers = [ {
					"id" : "lyxb",
					"layer" : this.lyxbLayer,
				}, {
					"id" : "dw",
					"layer" : this.locationGraph,
				} ];
				this.map.addLayers([this.baselayer, this.districtLayer, this.ygycLayer, this.lyxbLayer]);
			},
			getMapExtent : function() {
				var extend = this.baselayer.fullExtent;
				return extend;
			},
			addLayer : function(layer, index){
				this.map.addLayer(layer, index);
			}
		});
	});